<template>
  <div>
    <van-nav-bar
      title="我的优惠"
      left-arrow
      @click-left="$router.push('/user')"
    />

    <div class="pig">
      <div class="load_img"></div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
/deep/.van-nav-bar {
  background-color: #3792e5;
  .van-nav-bar__title {
    color: #fff;
  }
  .van-nav-bar__arrow {
    color: #fff;
  }
}

.pig {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  .load_img {
    width: 100%;
    height: 100%;
    background: url("..//assets/6.png") no-repeat 0 0;
    transform: translateY(0);
    position: relative;
    animation: move 0.6s infinite;
    z-index: 11;
    left: 0;
  }
}

@keyframes move {
  to {
    transform: translate(0, -100%);
  }
}
</style>
